<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <script type="text/javascript" src="<?= $config['res_url'] ?>/js/jquery.min.js?ver=<?= $config['version'] ?>"></script>
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />        
        
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
	   <form action="" method="POST" id="rowForm">
	     <table width="100%" border="0">
           <tr>
             <td><?= translate('SELECT_AREA') ?></td>
             <td><select name="row[area]" id="area">
               <?php foreach ($arealist as $key => $value) { ?>
               <option value="<?=$key ?>">
                 <?=$value ?>
               </option>
               <?php }?>
             </select></td>
             <td>&nbsp;</td>
           </tr>
             <tr>
                 <td><?= translate('ROLE_ID') ?></td>
                 <td><input type="text" name="row[accountid]" id="accountid" size="25" /></td>
                 <td>&nbsp;</td>
             </tr>
           <tr>
             <td><?= translate('ROLE_NAME') ?></td>
             <td><input type="text" name="row[role_name]" id="rolename" size="25" /></td>
             <td>&nbsp;</td>
           </tr>
             <tr>
                 <td><?= translate('ROLE_SEAL') ?></td>
                 <td>
                     <input type="radio" name="row[enable]" value="0" id="enable" size="25" />封停
                     <input type="radio" name="row[enable]" value="1" id="enable" size="0" />解封
                 </td>
                 <td> </td>
             </tr>
           <tr>
             <td><?= translate('SEAL_TIME') ?></td>
             <td><input type="text" name="row[seal_time]" id="seal_time" size="25" /></td>
             <td>&nbsp;</td>
           </tr>
           <tr>
             <td><?= translate('SEAL_DES') ?></td>
             <td><textarea cols="50" rows="5" name="row[description]" id="des"></textarea></td>
             <td>&nbsp;</td>
           </tr>
           <tr>
             <td>&nbsp;</td>
             <td><input name="submit" type="submit" id="submit" value="<?= translate('SUBMIT') ?>" />
             </td>
             <td>&nbsp;</td>
           </tr>
         </table>
    </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#seal_time").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#rolename").formValidator({empty: false, onshow: '<?= translate('PLASE_INPUT_ROLE_NAME') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});  
                $("#sealtime").formValidator({empty: false, onshow: '<?= translate('AREA_FORM_INPUT_OPENTIME') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
            });

        </script>
    </body>
</html>
